#pragma once

#include <EGL/egl.h>  // EGL支持
#include <GLES3/gl3.h>
#include <android/log.h>

#include <cstdint>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>

#include "include/checkError.h"
class Shader {
 public:
  Shader(const std::string &vertexCode, const std::string &fragmentCode);
  GLuint mProgram{0};
  ~Shader();
  void begin();
  void end();

 private:
  void checkShaderErrors(GLuint target, std::string type);
};
